<html>

<head>

</head>

<div id="chartContainer">
    <script src="./lib/d3.v4.3.0.js"></script>
    <script src="./dist/dimple.v2.3.0.js"></script>
    <script type="text/javascript">
        var svg = dimple.newSvg("#chartContainer", 590, 400);
        d3.tsv("./data/example_data.tsv", function (data) {
            var myChart = new dimple.chart(svg, data);
            myChart.setBounds(20, 20, 460, 360)
            myChart.addMeasureAxis("p", "Unit Sales");
            var ring = myChart.addSeries(["Channel", "Price Tier"], dimple.plot.pie);
            ring.innerRadius = "50%";
            myChart.addLegend(500, 20, 90, 300, "left");
            myChart.draw();
        });
    </script>
</div>

</html>